//
//  ColumnCollectionViewCell.m
//  14-HomeWork-礼物说
//
//  Created by Mars_ZXB on 16/8/2.
//  Copyright © 2016年 BAT3. All rights reserved.
//
#import "ColumnCollectionViewCell.h"
#define kWidth self.bounds.size.width
#define kHeight self.bounds.size.height
@implementation ColumnCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 10, kWidth / 2, kHeight - 20)];
        _imageView.layer.cornerRadius = 5;
        _imageView.backgroundColor = [UIColor colorWithRed:1.000 green:0.701 blue:0.428 alpha:1.000];
        _imageView.image = [UIImage imageNamed:@"爱里.jpg"];
        _labelofTitle = [[UILabel alloc] initWithFrame:CGRectMake(kWidth / 2 + 10, 15, kWidth / 2 - 20, (kHeight - 20) / 3)];
        _labelofTitle.text = @"生活大爆炸";
//        _labelofTitle.backgroundColor = [UIColor colorWithRed:0.502 green:1.000 blue:0.000 alpha:1.000];
        _labelofTitle.font = [UIFont systemFontOfSize:20];
        _labelOFContent = [[UILabel alloc] initWithFrame:CGRectMake(kWidth / 2 + 10,  (kHeight - 20) / 3 + 15, kWidth / 2 - 20,  (kHeight - 20) / 4)];
        _labelOFContent.text = @"更新至第108期";
//        _labelOFContent.backgroundColor = [UIColor greenColor];
        _labelOFContent.textColor = [UIColor lightGrayColor];
        CGFloat labelNameY = _labelOFContent.frame.origin.y + _labelOFContent.frame.size.height;
        _labelOfName = [[UILabel alloc] initWithFrame:CGRectMake(kWidth / 2 + 10,labelNameY, kWidth / 2 - 20, (kHeight - 20) / 4)];
        _labelOfName.text = @"气息";
//        _labelOfName.backgroundColor = [UIColor colorWithRed:0.179 green:0.559 blue:1.000 alpha:1.000];
        _labelOfName.textColor = [UIColor lightGrayColor];
        
        [self.contentView addSubview:_imageView];
        [self.contentView addSubview:_labelOFContent];
        [self.contentView addSubview:_labelOfName];
        [self.contentView addSubview:_labelofTitle];
        
        
    }
    return self;
}
@end
